/*
* 生成hash值
* */
import crypto from 'crypto'

const hashMethod = (data: string): string => {
    const hash = crypto.createHash('sha256')
    hash.update(data)
    return hash.digest('hex')
}

export default hashMethod